FROM  openjdk:17-jdk-alpine
ENV TZ="Asia/Shanghai"
ENV SPRING_PROFILES_ACTIVE=dev
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
    && set -xe  && apk --no-cache add ttf-dejavu fontconfig
WORKDIR /app
copy src/main/resources ./config/
copy target/lib/*.jar  ./lib/
copy target/*.jar ./
copy deploy/start.sh ./
CMD ["sh", "/app/start.sh"]